package com.junko.model.query_helper;

import org.apache.commons.lang3.StringUtils;

import java.util.Date;

public class BaseQueryHelper {
    private String name;
    private Date gmtCreateBegin;
    private Date gmtCreateEnd;
    private String search;
    private Integer page = 1;//页码
    private Integer rows = 10;//行数
    private int offset;
    private int limit;


    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Date getGmtCreateBegin() {
        return gmtCreateBegin;
    }

    public void setGmtCreateBegin(Date gmtCreateBegin) {
        this.gmtCreateBegin = gmtCreateBegin;
    }

    public Date getGmtCreateEnd() {
        return gmtCreateEnd;
    }

    public void setGmtCreateEnd(Date gmtCreateEnd) {
        this.gmtCreateEnd = gmtCreateEnd;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = StringUtils.trim(search);
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }
}
